package com.wctj.api.base.enums;

/**
 * @author: lzg
 * @description: 银行账户类型：1-对公；2-对私，如果需要自动开结算账户，本字段必填
 */
public enum BankAcctTypeEnums {
    toPublic(1, "对公")
    ,toPrivate(2, "对私")
    ;

    private Integer code;
    private String msg;
    BankAcctTypeEnums(int code, String message) {
        this.code = code;
        this.msg = message;
    }
    public Integer getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }

    public static BankAcctTypeEnums of(int code) {
        for (BankAcctTypeEnums apiCode : BankAcctTypeEnums.values()) {
            if (apiCode.getCode() == code) {
                return apiCode;
            }
        }
        return null;
    }
}

